package com.gopay.bis.manager.bank.payconfig.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gopay.bis.dao.payconfig.BisBankProductLimitMerchantsDao;
import com.gopay.bis.manager.bank.payconfig.BisBankProductLimitMerchantsManager;
import com.gopay.common.domain.bis.BisProductLimitMerchants;

/** 
 * 商户--银行产品额度配置Manager实现
 * @ClassName: BisBankProductLimitMerchantsManagerImpl 
 * @author w_jiqing 
 * @date 2017年4月26日 下午2:51:59  
 */ 
@Service("bisBankProductLimitMerchantsManager")
public class BisBankProductLimitMerchantsManagerImpl implements BisBankProductLimitMerchantsManager{
    
    @Resource(name = "bisBankProductLimitMerchantsDao")
    private BisBankProductLimitMerchantsDao bisBankProductLimitMerchantsDao;

    @Override
    public boolean isExistEnableMerchants(String merId, String bank, String prod, String limitType) {
        List<BisProductLimitMerchants> list = bisBankProductLimitMerchantsDao.getEnableMerchantsByMerIdBankProductLimit(merId, bank, prod, limitType);
        if (list != null && list.size() != 0) {
            return true;
        } else {
            return false;
        }
    }

}
